package golf

import (
	"scanner"
	"fmt"
)

type golfToken  struct {
	Tok int
	value string
	//prev *golfToken
	//next *golfToken
	Pos scanner.Position
}

func newGolfToken( tok int, value string, pos scanner.Position ) *golfToken {
	return &golfToken{Tok:tok, value:value, Pos:pos}
}//newGolfToken()

func (gt *golfToken) String() string {
	pos := gt.Pos
	return fmt.Sprintf("Token:%v, value:%v, line:%v, col:%v", scanner.TokenString(gt.Tok), gt.value, pos.Line, pos.Column)
}//String()

func (gt *golfToken) ValueString() string {
	return gt.value
}//ValueString()

//func (gt *golfToken) Next() *golfToken {
	//return gt.next
//}//Next()

//func (gt *golfToken) Prev() *golfToken {
	//return gt.prev
//}//Prev()
